import request from '@/utils/request'

// 查询固定薪水列表
export function listSalary(query) {
  return request({
    url: '/sl/salary/list',
    method: 'get',
    params: query
  })
}

// 查询固定薪水详细
export function getSalary(fsId) {
  return request({
    url: '/sl/salary/' + fsId,
    method: 'get'
  })
}

// 新增固定薪水
export function addSalary(data) {
  return request({
    url: '/sl/salary',
    method: 'post',
    data: data
  })
}

// 修改固定薪水
export function updateSalary(data) {
  return request({
    url: '/sl/salary',
    method: 'put',
    data: data
  })
}

// 删除固定薪水
export function delSalary(fsId) {
  return request({
    url: '/sl/salary/' + fsId,
    method: 'delete'
  })
}
